//冲洗液设计

// 导入封装好的网络请求类工具
import request from '../../../../../utils/request';
// 封装各种接口请求
// export const 接口名 = () => Network.get('/路由',参数对象);

//冲洗液设计-编辑保存数据
export const FlushingfluidDesignUpdate = (form) => {
    return request({
        url: '/flushingfluidDesign/flushingfluidDesignUpdate',
        method: 'put',
        data: form
    })
}

//冲洗液设计-删除数据
export const FlushingfluidDesignDelete = (id) => {
    return request({
        url: `/flushingfluidDesign/flushingfluidDesignDelete/${id}`,
        method: 'delete'
    })
}

//新-------查询

export const FindFlushingfluidDesign= (WellStructureId) => {
    return request({
        url: `/flushingfluidDesign/findFlushingfluidDesignByCondition/${WellStructureId}`,
            
        method: 'get',
       
    })
}
//新-------编辑
export const FlushingfluidDesignEdit = (WellStructureId,form) => {
    return request({
        url: `/flushingfluidDesign/insertOrUpdateFlushingfluidDesign/${WellStructureId}`,
        method: 'post',
        data: form
    })
}


//冲洗液设计-查询数据
export const FindFlushingfluidDesignByCondition = (searchModel) => {
    return request({
        url: '/flushingfluidDesign/findFlushingfluidDesignByCondition',
            
        method: 'post',
        data: searchModel
    })
}

//冲洗液设计-新增数据
export const FlushingfluidDesignAdd = (form) => {
    return request({
        url: '/flushingfluidDesign/flushingfluidDesignAdd',
        method: 'post',
        data: form
    })
}